package com.itheima.web.controller;

import com.itheima.web.manager.AnalysisManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class AnalysisController {


    @Autowired
    private AnalysisManager analysisManager;

    //统计展示
    @GetMapping("/dashboard/summary")
    public ResponseEntity findSummaryVo() {
        return analysisManager.findSummaryVo();
    }

    @GetMapping("/dashboard/users")
    public ResponseEntity findData(Long sd, Long ed, Integer type) {

        return analysisManager.findData(sd, ed, type);
    }
}
